<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/6/10
  Time: 14:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="/static/themes/icon.css">
    <link type="text/css" rel="stylesheet" href="/static/themes/default/easyui.css">
    <script type="text/javascript" src="/static/jquery.min.js"></script>
    <script type="text/javascript" src="/static/jquery.easyui.min.js"></script>
</head>
<body>
<form id="testPaper-from-save" action="save.action" method="post">
试卷名称 <input  class="easyui-textbox" name="name" />
学科名称 <input class="easyui-combobox" name="professions.id" data-options="valueField:'id',textField:'name',url:'/profession/professionListAjax.action'" /><br>
 阶段名称  <input class="easyui-combobox" name="stage.id" data-options="valueField:'id',textField:'name',url:'/stage/stageListAjax.action'" /><br>
    <a id="testPaper-save-btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">保存</a>
</form>
</body>
<script type="text/javascript">
    $(function(){
        $('#testPaper-from-save').form({
            success:function(data){
                alert(data);
            }
        });
        $('#testPaper-save-btn').click(function(){
            $('#testPaper-from-save').submit();
            return false;
        })  ;

    })
</script>
</html>
